package com.eqdd.yiqidian.ui.mine.pizhun;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

import com.eqdd.yiqidian.annotation.DealCode;
import com.eqdd.yiqidian.base.BaseShowActivity;
import com.eqdd.yiqidian.base.CodeRule;
import com.eqdd.yiqidian.base.Config;
import com.eqdd.yiqidian.rxbus2.Subscribe;
import com.eqdd.yiqidian.rxbus2.ThreadMode;
import com.eqdd.yiqidian.ui.mine.pizhun.Fragment.TravelCheckFragment;

@DealCode(codes = {CodeRule.PIZHUN_CHUCHAI})
public class ShowTravelCheckActivity extends BaseShowActivity {

    @Subscribe(codes = {CodeRule.PIZHUN_CHUCHAI}, threadMode = ThreadMode.MAIN)
    public void refreshCode() {

    }
    @Override
    protected void initTitle() {
        initTopTitleBar(View.VISIBLE, "出差审批");
    }
    @Override
    public void initData() {
        isRxbus = true;
        titles.add("待审批");
        titles.add("已审批");
    }
    protected Fragment getFragment(int status) {
        TravelCheckFragment fragment = new TravelCheckFragment();
        Bundle bundle = new Bundle();
        bundle.putInt(Config.STATUS, status);
        bundle.putInt(Config.WHO, 1);
        fragment.setArguments(bundle);
        return fragment;
    }
}
